<template>
    <div class=''>我是详情页面
        <p @click="jump">跳转另外一个详情页</p>
    </div>
</template>

<script>
export default {
    data() {
        return {};
    },

    
    beforeRouteUpdate:(to, from,next)=>{ // 路由发生变化才会触发
      console.log(to);
      console.log(from);
      next();
    },
    mounted() {},
    methods: {
        jump(){
            this.$router.push(`/delit/${35}`)
        }
    },
    components:{}
};
</script>

<style lang='scss'>

</style>
